package com.group11.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.group11.user.dto.UserInfo;
import com.group11.user.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 更新用户积分
     * @param id 用户ID
     * @param delta 积分变化值
     */
    void updateScore(@Param("id") Integer id, @Param("delta") Integer delta);

    boolean updateUserInfo(UserInfo userInfo);
}
